package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hgxd.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wtf
 * @create 2023-10-24 16:19
 * @description :
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("rb_inspection_style")
@ApiModel(value = "InspectionStyle对象", description = "巡检方式计划表")
public class InspectionStyle extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("所属巡检任务名称")
    private String name;

    @ApiModelProperty("所属任务的id")
    private Integer inspectionId;

    @ApiModelProperty("巡检时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    @ApiModelProperty("备注")
    private String comment;



}
